home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / strlibs.zip / STRMOV.C < prev    next >
Text File  |  1993-01-04  |  579b  |  21 lines

  1.  
  2. /*  File   : strmov.c
  3.     Author : Richard A. O'Keefe.
  4.     Updated: 20 April 1984
  5.     Defines: strmov()
  6.  
  7.     strmov(dst, src) moves all the  characters  of  src  (including  the
  8.     closing NUL) to dst, and returns a pointer to the new closing NUL in
  9.     dst.   The similar UNIX routine strcpy returns the old value of dst,
  10.     which I have never found useful.  strmov(strmov(dst,a),b) moves a//b
  11.     into dst, which seems useful.
  12. */
  13.  
  14. char *strmov(dst, src)
  15.     register char *dst, *src;
  16.     {
  17.         while (*dst++ = *src++) ;
  18.         return dst-1;
  19.     }
  20.  
  21.